package S1;

import com.util.JedisUtils;
import org.junit.Test;
import redis.clients.jedis.Jedis;

public class JedisTest1 {

    //连接池使用
    @Test
    public void testJedis(){
        Jedis jedis= JedisUtils.getJedis();
        jedis.setex("name1",10,"测试测试");
        System.out.println(jedis.get("name1"));
        jedis.close();
    }
}
